<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const test = () => {
        let obj = new Object();
        obj.name = "zce";
        obj.age = 38;
        obj.slogan = "前端";
        return obj;
      };

      console.log(test());

      const test1 = () => {
        let obj = {
          name: "zce",
          age: 38,
          slogan: "前端",
        };
        return obj;
      };

      console.log(test1());
    </script>
  </body>
</html>
